<template>
    <div class="adv">
        <div class="title">
            <div class="content">
                <h1>
                    全国CA代办——安全、便捷、高效，让您更省心
                </h1>

                <div class="desc">
                    <div class="item">
                        <div class="main">
                            一站式办理
                        </div>

                        <div class="sub">
                            信息在线提交一次办结
                        </div>
                    </div>

                    <div class="item">
                        <div class="main">
                            证书快递送达
                        </div>

                        <div class="sub">
                            支持实体证书快递送达
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="card content">
            <div class="title">
                CA代办帮您省心省力
            </div>

            <div class="body">
                <div 
                class="item"
                v-for="(item, index) in advantages"
                :key="index"
                >
                    <div class="left">
                        <img :src="item.img" alt="">
                    </div>

                    <div class="right">
                        <div class="title">
                            {{item.title}}
                        </div>

                        <div class="desc">
                            {{item.desc}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            advantages: [
                {
                    img: '/images/application/ca-agent/icon-zhaunye.png',
                    title: '专业性强',
                    desc: '多年从业经验的专业人士代办数字证书服务各种问题轻松应对',
                },
                {
                    img: '/images/application/ca-agent/icon-fuwu.png',
                    title: '一站式服务',
                    desc: '为客户提供一站式服务，从准备材料、填写申请表、提交申请到审核通过全部包办',
                },
                {
                    img: '/images/application/ca-agent/icon-chenggong.png',
                    title: '确保申请成功率高',
                    desc: '准确地填写申请表格和提供所有必要的证明材料，保证申请成功率高',
                },
                {
                    img: '/images/application/ca-agent/icon-baozhang.png',
                    title: '保障安全和隐私',
                    desc: '参与团队均需签署合同及保密协议，保障整个流程及内容安全和隐私',
                },
            ]
        };
    },
};
</script>

<style lang="scss" scoped>
    .adv{
        margin-bottom: 40px;
        cursor: default;

        & > .title{
            height: 320px;
            padding-top: 38px;
            box-sizing: border-box;
            background-image: url(/images/application/ca-agent/bg.png);
            background-size: cover;

            h1{
                font-size: 30px;
                color: #ffffff;
                font-weight: normal;
            }

            .desc{
                display: flex;
                align-items: center;
                margin-top: 38px;

                .item{
                    display: flex;
                    align-items: center;
                    padding: 12px 18px;
                    background-color: rgba(216, 216, 216, .2);


                    .main{
                        font-size: 18px;
                        color: #ffffff;
                    }

                    .sub{
                        font-size: 14px;
                        color: #ffffff;
                        margin-left: 16px;
                    }

                    & + .item{
                        margin-left: 55px;
                    }
                }
            }
        }

        .card{
            background-color: #ffffff;
            box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.13);
            padding: 30px 32px;
            margin-top: -110px;

            &>.title{
                font-size: 22px;
                color: #222222;
                line-height: 1em;
                margin-bottom: 48px;
            }

            .body{
                display: flex;

                .item{
                    display: flex;

                    & + .item{
                        margin-left: 30px;
                    }

                    .left{
                        margin-right: 12px;

                        img{
                            display: block;
                            width: 48px;
                            height: 48px;
                        }
                    }

                    .right{
                        flex: 1;

                        .title{
                            font-size: 16px;
                            color: #2d2d2d;
                            line-height: 1em;
                            font-weight: bold;
                            margin-bottom: 8px;
                        }

                        .desc{
                            font-size: 12px;
                            color: #2d2d2d;
                            line-height: 2em;
                        }
                    }
                }
            }
        }
    }
</style>